package com.db.patterns.factory.demo02;

public class Client {
    public static void main(String[] args) {
        IFactory factory = new DivSubFactory();
        Operation operation = factory.CreateOperation();
        operation.numA = 3d;
        operation.numB = 0d;
        System.out.println(operation.getResult());
    }
}
